package com.study;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@EnableCaching // 启用缓存功能
@EnableScheduling // 开启定时任务
// 扫描 所有需要的包, 包含一些自用的工具类包 所在的路径
@ComponentScan(basePackages = { "com.study", "org.n3r.idworker" })
@EnableTransactionManagement
@SpringBootApplication
public class MicroserviceSpringMystudyApplication {

	public static void main(String[] args) {
		SpringApplication.run(MicroserviceSpringMystudyApplication.class, args);
	}

}
